<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page import="java.util.*"%>
<%@page import="support.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>More Degrees</title>
</head>
<body>
	<%
		//get degree info from degree page and set to session
		String degreeDiscipline = request.getParameter("degreeDiscipline");
		String Other = request.getParameter("Other");

		if (!degreeDiscipline.equals("Other")) {
			support s = new support();
			Vector majors = s.getMajors();
			degreeDiscipline = majors.get(
					Integer.parseInt(degreeDiscipline)).toString();
		} else {
			degreeDiscipline = Other;
		}
		
		session.setAttribute("degreeDiscipline", degreeDiscipline);

		String month = request.getParameter("month");
		session.setAttribute("month", month);

		String year = request.getParameter("year");
		session.setAttribute("year", year);

		String GPA = request.getParameter("GPA");
		session.setAttribute("GPA", GPA);

		String Title = request.getParameter("Title");
		session.setAttribute("Title", Title);
	%>

	<p>Choose next step:
	<p>
	<form method="get" action="degreeLocation.jsp">
		<input type="submit" value="Submit Next Degree" size="20" /> <input
			type="hidden" value="demore" name="action" />
	</form>

	<p>
	<form method="get" action="specialization.jsp">
		<input type="submit" value="Done" size="20" />
	</form>

</body>
</html>